package org.tr.demo;

import java.util.Date;
import java.util.TimerTask;

/**
 * User: Lior Ben Zeev
 * Date: Sep 11, 2011
 */
public class DemoTask extends TimerTask {


    @Override
    public void run() {
        System.out.println(new Date(System.currentTimeMillis()) + " " + new Date());

//        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
//        for (StackTraceElement stackTraceElement : stackTraceElements) {
//            System.out.println(stackTraceElement.getClassName() + " "+stackTraceElement.getMethodName() + " "+stackTraceElement.getLineNumber());
//        }
    }
}
